using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Comteck.Domain.Entities;

namespace Comteck.Entities.Sys {
  /// <summary>
  /// 
  /// </summary>
  [Table("Parameter")]
  public class Parameter : Entity<string> {
    /// <summary>
    /// 商品id
    /// </summary>
    [Key]
    [DatabaseGenerated(DatabaseGeneratedOption.None)]
    public override string Id { get; set; }

    /// <summary>
    /// 商品名称
    /// </summary>
    [Required, MaxLength(500)]
    public string Name { get; set; }

    /// <summary>
    /// 商品名称
    /// </summary>
    [MaxLength(500)]
    public string Value { get; set; }
  }
}
